<?php
        //$datainformation=$data; 
    //$datainformation=aa();
/**
* 
*/

    
    function datainformation($data)
    {   $datainformation=$data;
        //var_dump($data);
      
?>
    	<div style="margin-left:auto; margin-right:auto;margin-top:32px" class="container" >    
        
        	<div class="container col-sm-8"  >
            	<div style="margin-top:30px;">
                	<h1 style="font-size:50px;"><?php echo $datainformation["huanyingyu"]?></h1>
                    <h4 class=" text-muted"><?php echo $datainformation["xuanyuan"] ?></h4>
                </div>
                <div class="container page-header" style="margin-top:30px; width:100%">
                	<h1><?php echo $datainformation["title"]?></h1>
                        <ol class="breadcrumb" style="width:300px;">
                            <li><a href="#"><?php echo $datainformation["name"]?></a></li>
                            <li><a href="#"><?php echo $datainformation["nian"]?></a></li>
                            <li><a href="#"><?php echo $datainformation["yue"]?></a></li>
                            <li><a href="#"><?php echo $datainformation["ri"]?></a></li>
                            <li><a <?php echo "href='index.php?route=Controller/dianzan/ControllerDianzan/dianzan&=".$datainformation['information_id']."'" ?> ><span class="glyphicon glyphicon-thumbs-up"></a></span><span class="badge"><?php echo $datainformation["shuliang"] ?></span></li>
                        </ol>
                </div>   
                <div style="width:100%;font-size:24px;">
                    <p><?php echo $datainformation["neirong"]; ?></p>
                </div>  



				
         </div>
           
         <div class="col-sm-4" style="margin-top:300px;">
         	<div class="well">
            	<ul>
                	<li><h4>你好，欢迎来到博客</h4></li>
                    <li><iframe allowtransparency="true" frameborder="0" width="170" height="20" scrolling="no" src="//tianqi.2345.com/plugin/widget/index.htm?s=3&z=1&t=1&v=0&d=1&bd=0&k=&f=&ltf=009944&htf=cc0000&q=1&e=0&a=1&c=54511&w=317&h=28&align=center"></iframe></li>
                    <li>冬天</li>
                    <li>请注意保暖</li>
                </ul>   
            </div>
            <div style="margin-top:40px;">
            	<h4>往期文章回顾</h4>
                <?php 
                    foreach ($datainformation["information"] as $key1 => $value1) {
                        echo "<em style='font-size:25px;'>".$key1."年</em>";
                            foreach ($value1 as $key2 => $value2) {
                                echo "<em style='font-size:25px;'>".$key2."月</em>";
                                //var_dump($value2);
                                foreach ($value2 as $value) {
                                    echo "<p><a href='".$value['url']."'>".$value['title']."</a></p>";
                                    # code...
                                }
                            }
                        
                    }


                ?>

                
            </div>
            	
            
         </div>
            
       </div>
    </div>

    
</body>
</html>
<?php


    }

